<template>
  <div class="index">
    <Headerinp/>
    <div class="main"><router-view /></div>
    <div class="footer">
      <van-tabbar route placeholder>
        <van-tabbar-item icon="home-o" to="/index/home">首页</van-tabbar-item>
        <van-tabbar-item icon="search" to="/index/classlist"
          >分类</van-tabbar-item
        >
        <van-tabbar-item icon="friends-o" to="/index/find"
          >发现</van-tabbar-item
        >
        <van-tabbar-item icon="setting-o" to="/index/buycar"
          >购物车</van-tabbar-item
        >
        <van-tabbar-item icon="setting-o" to="/index/my">我的</van-tabbar-item>
      </van-tabbar>
    </div>
  </div>
</template>

<script>
import Headerinp from '../../components/Headerinp.vue'
export default {
  name: "index",
  components:{
    Headerinp
  },

  data() {
    return {
      value: "",
    };
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="scss" scoped>
.index {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  .main {
    flex: 1;
    overflow-y: auto;
  }
}
</style>